<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@page import="com.flying.dcss.app.SessionName"%>
<%@page import="com.flying.dcss.viewmodel.impl.DCListViewModel"%>
<%@page import="com.flying.dcss.app.CommonHelper"%>

<%
	List<DCListViewModel> models = (List<DCListViewModel>) request
			.getAttribute(SessionName.DcListSession);
	if (models == null)
		return;
%>

<tr class="first">
	<td>
		城市
	</td>
	<td>
		建筑
	</td>
	<td>
		楼层
	</td>
	<td>
		门禁信息
	</td>
	<td>
		管理员
	</td>
	<td>
		管理员工号
	</td>
	<td>
		状态
	</td>
</tr>
<%
	for (DCListViewModel item : models) {
%>
<tr>
	<td>
		<%=item.getCity()%>
	</td>
	<td>
		<%=item.getBuilding()%>
	</td>
	<td>
		<%=item.getFloor()%>
	</td>
	<td>
		<%=item.getDcInfo().getDescription()%>
	</td>
	<td>
		<%=item.getManager()%>
	</td>
	<td>
		<%=item.getManagerEmpoyeeNum()%>
	</td>
	<td>
		<%=CommonHelper.showDCState(item.getDcInfo()
						.getDcState())%>
	</td>
</tr>
<%
	}
%>